package FlowGram.Application.Parser.Actions;

import FlowGram.Application.Parser.Controllers.FinchController;


/**
 * 
 * @author thackray
 *
 */
public class Move extends FinchAction {

	
	
	public static boolean matches(String s){
		return s.matches("^move$");
	}
	public static String syntax(){
		return "move";
	}
	
	@Override
	public void execute(FinchController controller) {
		controller.moveForward();
		
	}
	
	public String logMessage(){
		return "Moving Forward";
	}
	
	
	@Override
	public void parse(String statement) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public String toCode(int indent) {
		return "move";
	}
	@Override
	public String toHTML(String idPrefix){
		return this.toCode();
	}
}
